<template>
  <div id="app">
    <router-view />
    <!-- 3.调用子组件 -->
    <nav-bar></nav-bar>
  </div>
</template>
<script>
//1.引入子组件
import navBar from "./components/nav.vue";
export default {
  components: {
    //2.注册子组件
    navBar
  }
};
</script>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
}
</style>
